﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.ViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - Bæta við Auglýsingu
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Bæta við auglýsingu</h1>
    <p>Auglýsing verður að vera 170 pixlar að breidd og 230 pixlar að hæð </p> <br/>
    <% using (Html.BeginForm("UploadAd", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
    { %>
        <div>
            <input type="file" id="imageFile" name="imageFile" />
        </div>
        <div>
            <label for="image_ImageMessage">Lýsing á auglýsingu:</label><br />
            <%: Html.TextBoxFor(model => model.ad.Description) %>
            <%: Html.ValidationMessageFor(model => model.ad.Description) %>
        </div>
        <p>
            <input type="submit" value="Vista Auglýsingu" />
        </p>
    <%} %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server">
</asp:Content>
